package com.tjbank.cssys.repository;

import com.tjbank.cssys.domain.CkOrderAccountAgeForm2;
import com.tjbank.cssys.domain.CkOrderOutboundForm;
import com.tjbank.cssys.domain.CkOrderRecoveryData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CkOrderRecoveryDataMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CkOrderRecoveryData record);

    int insertSelective(CkOrderRecoveryData record);

    CkOrderRecoveryData selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CkOrderRecoveryData record);

    int updateByPrimaryKeyWithBLOBs(CkOrderRecoveryData record);

    int updateByPrimaryKey(CkOrderRecoveryData record);

    List<CkOrderRecoveryData> selectRecoveryDataList(Map<String, String> map);

    void insertForeach(@Param("ckOrderRecoveryDataList") List<CkOrderRecoveryData> ckOrderRecoveryDataList);

    List<CkOrderAccountAgeForm2> selectAllCkOrderAccountAgeForm2(String dateTime);

    List<CkOrderOutboundForm> selectAllCkOrderOutboundForm(String dateTime);

    List<CkOrderRecoveryData> selectBySerialNumber(List<String> serialNumbers);

    void deleteForEach(List<CkOrderRecoveryData> ckOrderRecoveryDatas);

    List<CkOrderRecoveryData>getInfomationByPeopldIdAndContractNum(Map<String,String>map);

    List<CkOrderRecoveryData> findByCollectorIdAndCollectorNameAndDataTime(
            @Param("collectorId") String collectorId,
            @Param("collectorName")  String collectorName,
            @Param("dataTime") String dataTime);
}